- 
		Home
	
 
	- 
Event Tickets and Registration
 
- 
5.13.2
 
- 
Code
 
- 
Classes
 
-  Cart 
 
	
	
		
			
				
					
													
								
																			
											| Total Complexity | 
											53 | 
										
																			
											| Dependencies | 
											8 | 
										
																			
											| Dependents | 
											16 | 
										
																	
							 
													
								
																			
											| Total lines | 
											633 | 
										
																			
											| Lines of code | 
											212 | 
										
																			
											| Logical lines of code | 
											129 | 
										
																	
							 
													
								
																			
											| Comment lines | 
											321 | 
										
																			
											| Methods | 
											21 | 
										
																			
											| Properties | 
											4 | 
										
																	
							 
											 
				 
									
							 
		 
	 
	Methods 21
	
		
		
			| Method | 
							Rating | 
													
					
						Maintainability
					
				 | 
										
					Complexity
				 | 
										
					Lines of code
				 | 
					
		
		
					
				| get_cart_hash() | 
									A  | 
																	51 | 
													9 | 
													28 | 
							
					
				| prepare_data() | 
									A  | 
																	43 | 
													7 | 
													51 | 
							
					
				| parse_request() | 
									S  | 
																	52 | 
													6 | 
													25 | 
							
					
				| maybe_delete_expired_products() | 
									S  | 
																	55 | 
													6 | 
													21 | 
							
					
				| set_cart_hash_cookie() | 
									S  | 
																	58 | 
													5 | 
													14 | 
							
					
				| is_current_page() | 
									S  | 
																	64 | 
													3 | 
													10 | 
							
					
				| get_current_cart_transient() | 
									S  | 
																	69 | 
													2 | 
													7 | 
							
					
				| process() | 
									S  | 
																	72 | 
													2 | 
													6 | 
							
					
				| get_repository() | 
									S  | 
																	74 | 
													1 | 
													4 | 
							
					
				| get_mode() | 
									S  | 
																	81 | 
													1 | 
													3 | 
							
					
				| get_available_modes() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| is_available_mode() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| get_transient_name() | 
									S  | 
																	78 | 
													1 | 
													3 | 
							
					
				| get_url() | 
									S  | 
																	71 | 
													1 | 
													5 | 
							
					
				| generate_cart_order_hash() | 
									S  | 
																	74 | 
													1 | 
													4 | 
							
					
				| set_cart_hash() | 
									S  | 
																	81 | 
													1 | 
													3 | 
							
					
				| clear_cart() | 
									S  | 
																	71 | 
													1 | 
													6 | 
							
					
				| get_items_in_cart() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| add_ticket() | 
									S  | 
																	72 | 
													1 | 
													5 | 
							
					
				| remove_ticket() | 
									S  | 
																	72 | 
													1 | 
													5 | 
							
					
				| get_cart_total() | 
									S  | 
																	81 | 
													1 | 
													3 |